package com.housediyadmin.command.treeCommand
{
	import com.housediyadmin.events.treeEvents.EditGoodsLevelEvent;
	import com.housediyadmin.service.GoodsRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/16
	 */	
	public class EditGoodsLevelCommand extends Command
	{
		[Inject]
		public var service:GoodsRemoteObjectService;
		
		[Inject]
		public var event:EditGoodsLevelEvent;
		
		override public function execute():void
		{
			service.editGoodsLevel(event.typeID, event.newTypeName);
		}	
	}
}